home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / bfd / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-04-03  |  12.4 KB  |  385 lines

  1. #    Makefile template for Configure for the BFD library.
  2. #    Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  3. #    Written by Cygnus Support.
  4. # This file is part of BFD, the Binary File Descriptor library.
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. # $Id: Makefile.in,v 1.79 1992/04/03 01:47:33 gnu Exp $
  18.  
  19. srcdir = .
  20.  
  21. prefix = /usr/local
  22.  
  23. exec_prefix = $(prefix)
  24. bindir = $(exec_prefix)/bin
  25. libdir = $(exec_prefix)/lib
  26.  
  27. datadir = $(prefix)/lib
  28. mandir = $(prefix)/man
  29. man1dir = $(mandir)/man1
  30. man2dir = $(mandir)/man2
  31. man3dir = $(mandir)/man3
  32. man4dir = $(mandir)/man4
  33. man5dir = $(mandir)/man5
  34. man6dir = $(mandir)/man6
  35. man7dir = $(mandir)/man7
  36. man8dir = $(mandir)/man8
  37. man9dir = $(mandir)/man9
  38. infodir = $(prefix)/info
  39. includedir = $(prefix)/include
  40. oldincludedir =
  41. docdir = $(srcdir)/doc
  42.  
  43. SHELL = /bin/sh
  44.  
  45. INSTALL = install -c
  46. INSTALL_PROGRAM = $(INSTALL)
  47. INSTALL_DATA = $(INSTALL)
  48.  
  49. AR = ar
  50. AR_FLAGS = qc
  51. BISON = bison
  52. MAKEINFO = makeinfo
  53. RANLIB = ranlib
  54.  
  55. INCDIR = $(srcdir)/../include
  56. CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
  57. DEP = mkdep
  58. MINUS_G=-g
  59.  
  60. SUBDIRS = doc
  61.  
  62.  
  63. # Change this (to MINIMIZE=1) to save space in executables.
  64. # Currently, all this does is control the target_vector in targets.c.
  65. MINIMIZE=0
  66.  
  67. TARGETLIB = libbfd.a
  68. CFLAGS = $(MINUS_G) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
  69.  
  70.  
  71. BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
  72.     archures.o core.o section.o format.o syms.o reloc.o init.o ctor.o seclet.o
  73.  
  74. BFD_MACHINES = cpu-h8300.o cpu-i960.o cpu-sparc.o cpu-m68k.o cpu-m88k.o \
  75.     cpu-vax.o cpu-mips.o cpu-a29k.o cpu-i386.o cpu-rs6000.o
  76.  
  77. BFD_BACKENDS = oasys.o ieee.o srec.o elf.o stab-syms.o\
  78.     aout64.o aout32.o demo64.o sunos.o newsos3.o i386aout.o bout.o \
  79.     coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
  80.     coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o 
  81.  
  82. OPTIONAL_BACKENDS = trad-core.o
  83.  
  84. #### host and target dependent Makefile fragments come in here.
  85. ###
  86.  
  87. BFD_H=$(INCDIR)/bfd.h
  88.  
  89. # C source files that correspond to .o's.
  90. CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
  91.      coff-i386.c aout64.c aout32.c sunos.c demo64.c coff-i960.c srec.c \
  92.      oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c coff-msym.c \
  93.      format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c seclet.c \
  94.      coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c bout.c elf.c \
  95.     cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c \
  96.      cpu-vax.c cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c
  97.  
  98. STAGESTUFF = $(TARGETLIB) $(OFILES)
  99.  
  100. all: $(TARGETLIB) 
  101.     $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)"
  102.  
  103. check:
  104.  
  105. info: force
  106.     $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
  107.  
  108. clean-info:
  109.     $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
  110.     
  111. install-info: force
  112.     $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
  113.  
  114. # HDEPFILES comes from the host config; TDEPFILES from the target config.
  115. OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) $(HDEPFILES) $(TDEPFILES)
  116.  
  117. $(TARGETLIB): $(OFILES)
  118.      rm -f $(TARGETLIB)
  119.      $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
  120.      $(RANLIB) $(TARGETLIB)
  121.  
  122. # When compiling targets.c, supply the default target info from configure.
  123. targets.o: targets.c
  124.     $(CC) $(CFLAGS) -c -DMINIMIZE=$(MINIMIZE) $(TDEFAULTS) $<
  125.  
  126. subdir_do: force
  127.     for i in $(DODIRS); do \
  128.         if [ -d ./$$i ] ; then \
  129.             if (cd ./$$i; \
  130.                 $(MAKE) \
  131.                     "against=$(against)" \
  132.                     "AR=$(AR)" \
  133.                     "AR_FLAGS=$(AR_FLAGS)" \
  134.                     "CC=$(CC)" \
  135.                     "RANLIB=$(RANLIB)" \
  136.                     "MAKEINFO=$(MAKEINFO)" \
  137.                     "BISON=$(BISON)" $(DO)) ; then true ; \
  138.             else exit 1 ; fi ; \
  139.         else true ; fi ; \
  140.     done
  141.  
  142. stage1: force
  143.     - mkdir stage1
  144.     - mv -f $(STAGESTUFF) stage1
  145.     $(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
  146.  
  147. stage2: force
  148.     - mkdir stage2
  149.     - mv -f $(STAGESTUFF) stage2
  150.     $(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
  151.  
  152. stage3: force
  153.     - mkdir stage3
  154.     - mv -f $(STAGESTUFF) stage3
  155.     $(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
  156.  
  157. against=stage2
  158.  
  159. comparison: force
  160.     for i in *.o ; do cmp $$i $(against)/$$i || exit 1 ; done
  161.     $(MAKE) subdir_do DO=comparison "DODIRS=$(SUBDIRS)"
  162.  
  163. de-stage1: force
  164.     - (cd stage1 ; mv -f $(STAGESTUFF) ..)
  165.     - rmdir stage1
  166.     $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
  167.  
  168. de-stage2: force
  169.     - (cd stage2 ; mv -f $(STAGESTUFF) ..)
  170.     - rmdir stage2
  171.     $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
  172.  
  173. de-stage3: force
  174.     - (cd stage3 ; mv -f $(STAGESTUFF) ..)
  175.     - rmdir stage3
  176.     $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
  177.  
  178. tags etags: TAGS
  179.  
  180. TAGS: force
  181.     etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
  182.  
  183. clean:
  184.     rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
  185.     $(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)"
  186.  
  187. clobber realclean: clean
  188.     rm -f libbfd.a TAGS
  189.     $(MAKE) subdir_do DO=clobber "DODIRS=$(SUBDIRS)"
  190.  
  191. # Mark everything as depending on config.status, since the timestamp on
  192. # sysdep.h might actually move backwards if we reconfig and relink it
  193. # to a different hosts/h-xxx.h file.  This will force a recompile anyway.
  194. RECONFIG = config.status
  195. $(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG)
  196. $(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG)
  197. $(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  198. $(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG)
  199.  
  200. # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
  201. cpu-i386.o:cpu-i386.c
  202.  
  203. saber:
  204.     #suppress 65 on bfd_map_over_sections 
  205.     #suppress 66 on bfd_map_over_sections 
  206.     #suppress 67 on bfd_map_over_sections 
  207.     #suppress 68 on bfd_map_over_sections 
  208.     #suppress 69 on bfd_map_over_sections 
  209.     #suppress 70 on bfd_map_over_sections 
  210.     #suppress 110 in bfd_map_over_sections 
  211.     #suppress 112 in bfd_map_over_sections 
  212.     #suppress 530 
  213.     #suppress 590 in swap_exec_header 
  214.     #suppress 590 in _bfd_dummy_core_file_matches_executable_p 
  215.     #suppress 590 in bfd_dont_truncate_arname
  216.     #suppress 590 on ignore 
  217.     #suppress 590 on abfd 
  218.     #setopt load_flags $(CFLAGS)
  219.     #load $(CFILES)
  220.  
  221.  
  222. #-----------------------------------------------------------------------------
  223. #        'STANDARD' GNU/960 TARGETS BELOW THIS POINT
  224. #
  225. # 'VERSION' file must be present and contain a string of the form "x.y"
  226. #-----------------------------------------------------------------------------
  227.  
  228. ver960.c: FORCE
  229.     rm -f ver960.c
  230.     echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
  231.  
  232.  
  233. # This target should be invoked before building a new release.
  234. # 'VERSION' file must be present and contain a string of the form "x.y"
  235. #
  236. roll:
  237.     @V=`cat VERSION`        ; \
  238.     MAJ=`sed 's/\..*//' VERSION`    ; \
  239.     MIN=`sed 's/.*\.//' VERSION`    ; \
  240.     V=$$MAJ.`expr $$MIN + 1`    ; \
  241.     rm -f VERSION            ; \
  242.     echo $$V >VERSION        ; \
  243.     echo Version $$V
  244.  
  245. # Dummy target to force execution of dependent targets.
  246. #
  247. force:
  248.  
  249. install:
  250.     $(INSTALL_DATA) libbfd.a $(libdir)/libbfd.a
  251.     $(RANLIB) $(libdir)/libbfd.a
  252.     $(INSTALL_DATA) $(INCDIR)/bfd.h $(includedir)/bfd.h
  253.     [ -z "$(oldincludedir)" ] || $(INSTALL_DATA) $(INCDIR)/bfd.h $(oldincludedir)/bfd.h
  254.     $(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)"
  255.  
  256. # Target to uncomment host-specific lines in this makefile.  Such lines must
  257. # have the following string beginning in column 1: #__<hostname>__#
  258. # Original Makefile is backed up as 'Makefile.old'.
  259. #
  260. # Invoke with:  make make HOST=xxx
  261. #
  262. make:
  263.     -@if test $(HOST)x = x ; then \
  264.         echo 'Specify "make make HOST=???"'; \
  265.         exit 1; \
  266.     fi ; \
  267.     grep -s "^#The next line was generated by 'make make'" Makefile; \
  268.     if test $$? = 0 ; then    \
  269.         echo "Makefile has already been processed with 'make make'";\
  270.         exit 1; \
  271.     fi ; \
  272.     mv -f Makefile Makefile.old; \
  273.     echo "#The next line was generated by 'make make'"     >Makefile ; \
  274.     echo "HOST=$(HOST)"                    >>Makefile ; \
  275.     echo                            >>Makefile ; \
  276.     sed "s/^#__$(HOST)__#//" < Makefile.old            >>Makefile
  277.  
  278. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  279.     $(SHELL) ./config.status
  280.  
  281. dep: $(CFILES)
  282.     mkdep $(CFLAGS) $?
  283.  
  284. host-aout.o: Makefile
  285.  
  286. # The following program can be used to generate a simple config file
  287. # which can be folded into an h-XXX file for a new host, with some editing.
  288. aout-params.h: gen-aout
  289.     ./gen-aout > aout-params.h
  290. gen-aout: $(srcdir)/gen-aout.c Makefile
  291.     $(CC) -o gen-aout $(CFLAGS) $(LFLAGS) $(srcdir)/gen-aout.c
  292.  
  293. headers:
  294.     (cd $(docdir); $(MAKE) protos)
  295.     # Rebuild prototypes in bfd.h
  296.     cp $(docdir)/bfd.h $(BFD_H)
  297.     cp $(docdir)/libbfd.h $(srcdir)/libbfd.h
  298.     cp $(docdir)/libcoff.h $(srcdir)/libcoff.h
  299.  
  300. bfd.info:
  301.     ( cd $(docdir); $(MAKE) bfd.info)
  302.  
  303. bfd.dvi:
  304.     (cd $(docdir); $(MAKE) bfd.dvi)
  305.  
  306. bfd.ps: 
  307.     (cd $(docdir); $(MAKE) bfd.ps)
  308.  
  309. # What appears below is generated by a hacked mkdep using gcc -MM.
  310.  
  311. # DO NOT DELETE THIS LINE -- mkdep uses it.
  312. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  313.  
  314. libbfd.o : libbfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  315. opncls.o : opncls.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  316. bfd.o : bfd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  317. archive.o : archive.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  318.   $(INCDIR)/aout/ar.h $(INCDIR)/aout/ranlib.h 
  319. targets.o : targets.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  320. cache.o : cache.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  321. archures.o : archures.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h 
  322. aout64.o : aout64.c 
  323. aout32.o : aout32.c aoutx.h $(INCDIR)/bfd.h $(INCDIR)/ansidecl.h \
  324.   $(INCDIR)/obstack.h libaout.h libbfd.h $(INCDIR)/aout/aout64.h \
  325.   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h 
  326. sunos.o : sunos.c aoutf1.h $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  327.   libaout.h libbfd.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
  328.   $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h 
  329. demo64.o : demo64.c 
  330.  
  331. srec.o : srec.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h 
  332. oasys.o : oasys.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  333.   $(INCDIR)/oasys.h liboasys.h 
  334. ieee.o : ieee.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  335.   $(INCDIR)/ieee.h libieee.h 
  336. coff-h8300.o: coff-h8300.c  $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  337.   $(INCDIR)/coff/h8300.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  338. coff-a29k.o: coff-a29k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  339.   $(INCDIR)/coff/a29k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  340. coff-i386.o: coff-i386.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  341.   $(INCDIR)/coff/i386.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  342. coff-i960.o: coff-i960.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  343.   $(INCDIR)/coff/i960.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  344. coff-m68k.o: coff-m68k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  345.   $(INCDIR)/coff/m68k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  346. coff-m88k.o: coff-m88k.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  347.   $(INCDIR)/coff/m88k.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  348. coff-mips.o: coff-mips.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  349.   $(INCDIR)/coff/mips.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  350. coff-rs6000.o: coff-rs6000.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  351.   $(INCDIR)/coff/rs6000.h $(INCDIR)/coff/internal.h libcoff.h coffcode.h 
  352. format.o : format.c $(INCDIR)/bfd.h \
  353.   $(INCDIR)/obstack.h libbfd.h 
  354. section.o : section.c $(INCDIR)/bfd.h \
  355.   $(INCDIR)/obstack.h libbfd.h 
  356. core.o : core.c $(INCDIR)/bfd.h \
  357.   $(INCDIR)/obstack.h libbfd.h 
  358. syms.o : syms.c $(INCDIR)/bfd.h \
  359.   $(INCDIR)/obstack.h libbfd.h 
  360. syms.o : stab-syms.c
  361. reloc.o : reloc.c $(INCDIR)/bfd.h \
  362.   $(INCDIR)/obstack.h libbfd.h 
  363.  
  364. trad-core.o : trad-core.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h \
  365.   libbfd.h libaout.h 
  366.  
  367. coff-msym.o: coff-msym.c $(INCDIR)/bfd.h  $(INCDIR)/coff/ecoff-ext.h \
  368.   $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h
  369.  
  370. newsos3.o : newsos3.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  371.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  372.   $(INCDIR)/aout/ar.h libaout.h 
  373. i386aout.o : i386aout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  374.   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  375.   $(INCDIR)/aout/ar.h libaout.h 
  376. bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  377.   $(INCDIR)/bout.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def libaout.h 
  378.  
  379. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  380.  
  381.